package com.itcoon.cloud.framework.security.model;

import java.time.LocalDateTime;

/**
 * @author Administrator
 * created in 2021/4/28
 */
public class JwtToken{

	/**
	 * 访问令牌
	 */
	private String accessToken;

	/**
	 * 刷新令牌
	 */
	private String refreshToken;

	/**
	 * 访问令牌过期时间
	 */
	private LocalDateTime accessExpiration;

	/**
	 * 刷新令牌过期时间
	 */
	private LocalDateTime refreshExpiration;

	/**
	 * 锁定状态
	 */
	private Boolean locked = false;

	/**
	 * 有效状态
	 */
	private Boolean valid = true;

	/**
	 * 用户ID
	 */
	private Long userId;

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public LocalDateTime getAccessExpiration() {
		return accessExpiration;
	}

	public void setAccessExpiration(LocalDateTime accessExpiration) {
		this.accessExpiration = accessExpiration;
	}

	public LocalDateTime getRefreshExpiration() {
		return refreshExpiration;
	}

	public void setRefreshExpiration(LocalDateTime refreshExpiration) {
		this.refreshExpiration = refreshExpiration;
	}

	public Boolean getLocked() {
		return locked;
	}

	public void setLocked(Boolean locked) {
		this.locked = locked;
	}

	public Boolean getValid() {
		return valid;
	}

	public void setValid(Boolean valid) {
		this.valid = valid;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
}
